utility method for append path, fixes #414

Only append with colon when current variable is not empty, fixes #414