convert resource directory path to string