Add $tmp_path to constructor

Added $tmp_path to constructor to make it configurable
#2