Remove trailing newline
Extract the lines of the namespace package pth file template for readability.
Extract the additional trailing lines when a parent package is indicated.