Use a local version of Mason instead of writing into ~/.mason

fixes #526