moves file in pure ruby way