Removed system calls for rm -rf and ln in favor of remove_tree and symlink.