Small bug fixes in-house pipeline

- Fixed several bugs, including forgotten perl script in in-house pipeline.