fixed paths to work for all directory depths