Added file permission and other checks for LESS compilation