fix error message when invalid directory
Merge pull request #1262 from dotcloud/1253_add_directory_check

* Runtime: fix error message when invalid directory