Added @path annontation to perform path mapping.

See: #1094, #451

* Made changes in perform.rb to visit path directives
to map files.
* Made changes in import.rb to replace the mapped file.