Put some moving parts into variables

Replace hardcoded paths with variables.
Allow setting custom target strings when building for different arm flavors. This solves #11 partly, doesn't add command-line options handling.