Added check to allow launching a file with a command