Adding support for prefixing root directory

Adding support for prefixing root directory to the path. This will help
automatically add correct paths to require js define block of  a view or
command.