Added patch, removed unnecessary code

Instead of using an inline replace I moved it to a DATA patch with the __END__ tag which correctly
patches the file. Removed an unnecessary mkpath which would automatically get called with an install
command.