More gracefully handle Ruby code in Modulefile. Closes #476