launch: move the filename checking to a wrapper