changed handling empty strings as stderr, users will just get an error message if they don't give a proper file name