Fix file open error and add custom colors from cmdline options