Bug fix for initialize method, minor addition to sanitizePath method.