Fixed issue#306 Can't specify profile path for -P option