Added support for --const/k lsc flag.

Some people choose to compile with the const flag set. This enables that option in liveify, by using environment variables to hold this option.

This pull request includes tests for this feature, including for error conditions.

I also took the liberty of fixing the regexp used to test for the ls extension (it would match anywhere in the filename).