Use separate directories for each arch

*nix environment fix will come later