Minor cleanup
Remove trailing slash before resolving target module
Allow for relative path for "main" even when not referencing an installed module