Changed implementation due to technical issues causing the previous implementation of the fix not to work correctly.

I personally do not see any way around breaking into the raw file system but I'm open to comments if someone can see a flaw with my code (eg. str_replacing out the file system iterator characters eg. '.' and '/')