added a check if a dir exists and adjusted formatting
fixed issue with police-less routes
added test for when a folder doesn't exist