Refactoring check_path_valid
Merge branch 'master' of https://github.com/earthreader/web