Directory structure

Still a work in progress. Current problem is only one script block is replaced. The regex needs to handle multiple blocks to do multiple replaces.