Added support for custom path to credential file