Use $HOME instead of ~ in build scripts

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>