Check $path to set default path in new_session