exiting if first arg is not a file