Hacky fix for moving files to their destination