Removed @required from inputDirectories and added null check, I hope that may close #7