Added a FileUtils.getParentDirectoryPath helper, and updated live preview to use it. Also removed the getFilenameWithExtension helper in favor of FileUtils.getFilenameWithExtension.