Fixed error like issue #1 and substring expansion

Error in init script for Ubuntu 13.10 that use dash like sh implementation. Also permit blank spaces before comments.