make the install target behave properly on linux

and it's also cleaner this way