clean up rails directory