Add missing explicit conversion from pathname to string, needed in rails 4

Without this change, an exception is raised when deploying barclamps in HA config under rails4/ruby2.1.