add const, explicit and reading from SOURCE_DIR

Signed-off-by: aLekSer <gdocse@gmail.com>