Copied the getParentFolder helper method from LiveDevelopment.js. Move this into FileUtils for 1.2