Creates .sh files for before and after script instead of having them inl...

...ined