refactored `apply_operations` and allow for file paths relative to the build files