cross-platform changes, added getCurrPath()