set the proper working dir