Proper separation between build and runtime outputs

it also fixes dangling symlinks in previous version