Fix issue with long path names

Fixes issue where FlashDevelop would crash when using the OpenResourceForm if files with long names or heavily nested directories were present in the project.
Merge pull request #304 from Richard-Walton/development

Fix issue with long path names