Make attributes case insensitive
Extract code for handling rankdir
Always make dist by default