Create data directory if it does not exist

On jenkins the credentials are taken from the system so there is no data
directory.