Moving file to the correct directory