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.