Update version to 2.0.1
Make sure that the input to dirname() is not empty value
Rebuild packages