change working directory before starting entry point script