Update snippet to use fileURL instead of URL

I was having issues with this returning nil, changing the method to fileURLWithPath fixed it.
Merge pull request #43 from Kronusdark/master

Update snippet to use fileURL instead of URL