Minor code cleanup

Use 755 instead of 744 when creating new directories, which gives
list rights to group and others as well. Simplified directory
creation code. Dead code is not needed.