check if a passfile exists before checking for directory