removed some global definitions and fixed PathHelper.rm(..) undefined path exception