#6: smaller fixes to paths, permissions and env setup