Sanity check is now checks for directory and errors out if it cant be made