ensure in correct working directory for migrations