Add various file checks, add ADD_TO_PASSWORD_FILE usage