Move file to appropriate directory