portability fix and error reporting

Fixed a few issues with portability (datetime settings) and added a
default user (root)