This hack didn't work on filenames with spaces, and I don't need it anymore.