Added condition to the logFilePath and pidFilePath methods

The pull request is related to the following issue: https://github.com/nodejitsu/forever/issues/507