Don't try to remove a directory that doesn't exist
Only proceed if build was sucessfull
Using correct variable for dir test
Use internal symlinking function to link folders in the directory not
the directory itself
Check that the build was sucessful first, as if it wasn't the file
certainly wont exist.
Merge pull request #28 from dwkitchen/master

Fixing a number of issues around failed builds