Add support for relative paths in amuse home dir of a resource. Some small cleanup.