Simplify script for changing to the right directory