Split installall target up into various vars. Removed dependency on realpath