Added in more intelegence to map copy rake task