path: fix folders returned by find command
redirect errors in function get_build_dir()
Merge pull request #3510 from vpeter4/project_folder

path: fix folders returned by find command