Moving file to correct directory