Making sure that target_dir is absolute path

This ensures that if target name exists in current directory
and spm picks it up cations during source.prepare() will not
fail. Also, it's always safer to work with absolute paths.