get path to work for linux c++ files and  some cleanup