Added a generic data directory path function, which will help portability from dev to EC2
environments.